import request from '@/utils/request'

// 获取热门投票数据
export function hotVoteTop1() {
  return request({
    url: '/business/dashboard/hotVoteTop1',
    method: 'get',
  })
}

// 获取所有投票
export function getCoreStats() {
  return request({
    url: '/business/dashboard/coreStats',
    method: 'get',
  })
}
// 获取进行中投票统计
export function getOngoingVote() {
  return request({
    url: '/business/dashboard/ongoingVote',
    method: 'get',
  })
}
//获取总参与人次统计
export function getTotalParticipation() {
  return request({
    url: '/business/dashboard/totalParticipation',
    method: 'get',
  })
}
//状态统计
export function getVoteStatus() {
  return request({
    url: '/business/dashboard/voteStatus',
    method: 'get',
  })
}
//热门投票对比
export function getHotVoteTop5() {
  return request({
    url: '/business/dashboard/hotVoteTop5',
    method: 'get',
  })
}
//近 30 天活动创建趋势
export function getVoteTrend30d() {
  return request({
    url: '/business/dashboard/voteTrend30d',
    method: 'get',
  })
}
//重点活动选项比例（饼图）组件
export function getVoteOptionRatio() {
  return request({
    url: '/business/dashboard/voteOptionRatio',
    method: 'get',
  })
}